package com.doctor.web.domain.vo;

import com.doctor.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class CommentsVo {

    /** 用户ID */
    @Excel(name = "用户序号", cellType = Excel.ColumnType.NUMERIC, prompt = "用户编号")
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户名称")
    private String nickName;

    /** 用户头像 */
    private String avatar;

    /** 评分 */
    @Excel(name = "评分")
    private Integer score;

    /** 评论 */
    @Excel(name = "评论")
    private String comment;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentTime;
}
